﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Shapes;
using WindowFormHostApp.Properties;
using System.Windows;
using UmlControlLibrary.Tools;
using UmlControlLibrary;

namespace WindowFormHostApp
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            elementHost1.Child = new UmlControlLibrary.UmlDiagramControl();
            UmlPackage systemPackage = AssemblyLoader.LoadAssembly(@"C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll");
            UmlModel.GetInstance().MergePackages(systemPackage.Childs);
//            UmlPackage umlLibraryPackage = AssemblyLoader.LoadAssembly(@"D:\prog\suwp\WpfControlLibrary2\bin\Debug\UmlControlLibrary.dll");
            UmlPackage umlLibraryPackage = AssemblyLoader.LoadAssembly(@"D:\prog\suwp\ReflectionTest\bin\Debug\ReflectionTest.dll");

            UmlModel.GetInstance().MergePackages(umlLibraryPackage.Childs);
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void elementHost2_ChildChanged(object sender, System.Windows.Forms.Integration.ChildChangedEventArgs e)
        {

        }
    }
}
